"""
"""
def getPT(extensions=None):
    """ 
    Defines the dictionary object, PT, that we push into javascript via
    simplejson.dumps()
    If supplied, extensions must be a dict that can be
    serialized by simplejson.dumps().
    """
    T.lazy = False
    PT = dict(
        ## URLs
        jsonurl = URL(r=request,c='results',f='call/json/serveresults/%(problemid)d'%locals()),
        jsoncommenturl = URL(r=request,c='results',f='call/json/servecomments/%(problemid)d'%locals()),
        
        ## strings that need translation
        T = dict(   
            comments = T('comments'),
            comment  = T('comment'),
            ),
        );
    if extensions:
        PT.extend(extensions)
    T.lazy = True
    return PT
